package edu.sctu.wangfuxin.day20150521;

/**
 * Created by user06 on 2015/5/21.
 */
public class TestPolymoph {
    public static  void main(String[] args){
        Cat c = new Cat("聂小猫","黄色");
        Dog d = new Dog("聂巨狗","屎黄色");
        Bird b = new Bird("鸵鸟");


        Lady l1 = new Lady("聂女士",c);
        Lady l2 = new Lady("聂小姐",d);
        Lady l3 = new Lady("聂婆婆",b);
        l1.myPetEnjioy();
        l3.myPetEnjioy();
        l2.myPetEnjioy();
    }
}
